layui.use('form', function() {
	var form = layui.form;
	getAllListStudent();

	function getAllListStudent() {
		$.ajax({
			url: 'http://localhost:8080/springend-sys/getListTeacherByAll',
			type: "post",
			data: {
				// sid: sessionStorage.getItem("sid")
				tid: sessionStorage.getItem("tid")
			},
			dataType: "json",
			success: function(result) {
				console.log(result);
				form.val('formone', {
					"tno": result.data[0].tno,
					"tname": result.data[0].tname,
					"sex": result.data[0].sex,
					"deptname": result.data[0].deptname,
					"locks": result.data[0].locks,
					"age": result.data[0].age,
					"email": result.data[0].email,
					"phone": result.data[0].phone,
					"birthday": result.data[0].birthday,
					"level": result.data[0].level,
					"createtime": result.data[0].createtime,
				
				});
			}
		})

	}
})
